package product_router

import (
	product_controller "go_essential/controller/product"
	auth_middleware "go_essential/middleware/auth"

	"github.com/gin-gonic/gin"
)

func ProductRouterInit(r *gin.Engine) {
	apiProductRouter := r.Group("/api/product")
	apiProductRouter.Use(auth_middleware.AuthMiddleware)
	apiProductRouter.POST("/list", product_controller.GetProductList)
}
